package com.pingba.service.oauth;

import com.pingba.entity.User;
import com.pingba.entity.oauth.WeCharUser;
import com.pingba.service.BaseService;

/**
 * Created by Administrator on 2015/12/9 0009.
 */
public interface WeCharUserService extends BaseService<WeCharUser, Long> {

    /**
     * 微信的第三方账号登录
     * <p>如果是第一次登录,则在wechar_user中新增一个用户</>
     * <p>通过wecharUser的unionId在user表中查找一个对象</p>
     * @param weCharUser
     * @return
     */
    User login(WeCharUser weCharUser);
}
